home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / UTILITY / GETUTILS.ARJ / DOW.BAT next >
DOS Batch File  |  1991-07-01  |  619b  |  35 lines

  1. echo off
  2. cls
  3. echo This batch file demonstrates the use of the GETDOW command.
  4. echo .
  5. echo It illustrates how to load a program only on Mondays.
  6. echo .
  7. GETDOW
  8. if errorlevel==6 goto Saturday
  9. if errorlevel==5 goto Friday
  10. if errorlevel==4 goto Thursday
  11. if errorlevel==3 goto Wednesday
  12. if errorlevel==2 goto Tuesday
  13. if errorlevel==1 goto Monday
  14. if errorlevel==0 goto Sunday
  15. goto end
  16.  
  17. :Saturday
  18. goto end
  19. :Friday
  20. goto end
  21. :Thursday
  22. goto end
  23. :Wednesday
  24. goto end
  25. :Tuesday
  26. goto end
  27. :Monday
  28. rem        Monday's routine commands need to go here.
  29. Echo Today is Monday!!!
  30. goto end
  31. :Sunday
  32. goto end
  33.  
  34. :end
  35.